package com.caiyouxi.goods.mapper;

import com.caiyouxi.goods.model.GoodsPropertiesConfig;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;

/**
 * 商品/订单的属性配置
 * chensong
 */
@Mapper
public interface GoodsPropertiesConfigMapper {
    
    int delete_goods_properties_config(int id);
    
    int add_goods_properties_config(GoodsPropertiesConfig goodsPropertiesConfig);
    
    int update_goods_properties_config(GoodsPropertiesConfig goodsPropertiesConfig);

    GoodsPropertiesConfig select_goods_properties_config(int id);

    List<GoodsPropertiesConfig> select_goods_properties_config_by_category_id_and_apply_to(HashMap<String,Object> map);

    int select_goods_properties_config_count(GoodsPropertiesConfig goodsPropertiesConfig);
}
